export const onContentUpOption = () => ({
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'shadow'
    }
  },
  legend: {
    data: ['计划劳务资源', "实际劳务资源"],
    align: 'left',
    right: 10,
    textStyle: {
      color: "#fff"
    },
    itemWidth: 14,
    itemHeight: 10,
    itemGap: 13,
  },
  grid: {
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  xAxis: [{
    type: 'category',
    data: ['1月', '2月', '3月', '4月'],
    axisLine: { // x轴线的颜色以及宽度
      show: true,
      lineStyle: {
        color: "rgba(219,225,255,1)",
        width: 0,
        type: "solid"
      }
    },
    axisTick: {
      show: false,
    },
    axisLabel: {//x轴文字的配置
      show: true,
      textStyle: {
        color: "rgba(219,225,255,1)",
      }
    }
  }],
  yAxis: [{
    type: 'value',
    name: "单位：人",//y轴上方的单位
    nameTextStyle: {//y轴上方单位的颜色
      color: '#151515'
    },
    axisLabel: {//y轴文字的配置
      textStyle: {
        color: "rgba(219,225,255,1)",
        margin: 15
      },
      // formatter: '{value} %'//y轴的每一个刻度值后面加上‘%’号
    },
    axisTick: {
      show: false,
    },
    axisLine: {//y轴线的颜色以及宽度
      show: true,
      lineStyle: {
        color: "rgba(219,225,255,1)",
        width: 1,
        type: "solid"
      },
    }
  }],
  series: [{
    name: '计划劳务资源',
    type: 'bar',
    data: [38, 38, 42, 48],
    barWidth: 10, //柱子宽度
    barGap: .5, //柱子之间间距
  }, {
    name: '实际劳务资源',
    type: 'bar',
    data: [40, 30, 42, 50],
    barWidth: 10,
    barGap: .5,
  }]
})

